ofSuppliedList

fun ofSuppliedList(defaultValue: Identifier, listSupplier: Supplier<List<Identifier>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable list of values

This list does not have to be complete at validation time.

Return

ValidatedIdentifier wrapping the provided default and list supplier

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

the default value of the ValidatedIdentifier

listSupplier

Supplier of the list whose entries are valid for this identifier


fun ofSuppliedList(listSupplier: Supplier<List<Identifier>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable list of values

This list does not have to be complete at validation time.

uses "minecraft:air" as the default value

Return

ValidatedIdentifier wrapping the provided list supplier

Author

fzzyhmstrs

Since

0.2.0

Parameters

listSupplier

Supplier of the list whose entries are valid for this identifier